package com.ruoyi.system.controller.public_api_i;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.entity.SunRequestBody;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


public interface IPublicApiSunPanelSystemStatus
{
    // Sun-Panel 接口如下

    //  /api/system 代理到 /public/api/sunpanel/system
    //sunpanel cpu信息
    public AjaxResult getCpuState() throws Exception;

    //sunpanel 内存
    public AjaxResult getMemonyState() throws Exception;

    //sunpanel 硬盘
    public AjaxResult getDiskStateByPath(@RequestBody SunRequestBody requestBody) throws Exception;

    //sunpanel 硬盘列表
    public AjaxResult getDiskMountpoints() throws Exception;



    // /api/docker 代理到 /public/api/sunpanel/docker
    //sunpanel 容器状态
    public AjaxResult getContainerStatus(@RequestBody SunRequestBody sunRequestBody) throws Exception;

    public AjaxResult getContainersStats(@RequestBody List<String> ids) throws Exception;


    //sunpanel 容器状态切换
    public AjaxResult execSwitchActionByContainerID(@RequestBody SunRequestBody sunRequestBody) throws Exception;

    //sunpanel 容器列表
    public AjaxResult getList() throws Exception;






}
